import torch.nn
class AdamModule(torch.nn.Module):
    def __init__(self):
        super().__init__()

    def forward(self, input):
        return input + 1

input = torch.tensor(1)
module = AdamModule()
output = module(input)
print(input)
print(output)